<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                template="/layout/template_box.xhtml"
                xmlns:a4j="http://richfaces.org/a4j">


  <ui:define name="head">
    <a4j:loadStyle src="/css/custom-theme/jquery-ui-1.8.2.custom.css"/>


	<script>
		function mascarar(){
            jQuery(".inteiro").unmask().mask('?99');            
			
		}
		function isDayEnabled(day){	
		   var data = new Date(day.date);
		   var hoje= new Date();
		   return data &lt;= hoje;
			   		   
		}
		function getDisabledStyle(day){
		   if (!isDayEnabled(day)) return 'rich-calendar-boundary-dates disabledDay';
		}
	</script>
	
	<style>
		.special tr[id]{
		 display:none;
		 }
	</style>

  </ui:define>

  <ui:define name="MenuInterno">
    <ui:include src="/layout/menu_turma.xhtml"/>
  </ui:define>


  <ui:define name="body">

    <h2 class="t_turma">Turmas</h2>

    <div id="tamanho_div">


      <h:form styleClass="form_confea" ajaxSubmit="true" id="form">
  	<fieldset>
			<h:messages globalOnly="true" styleClass="tool_alerta" />
	</fieldset>
	<fieldset>
            <legend>Opções de Busca</legend>
            <ol>
           
              <li>

                <s:div id="divNome">
	                <s:decorate id="nomeField" template="/layout/edit.xhtml">
	                  <ui:define name="label">Nome</ui:define>
	                  <h:inputText id="nome" styleClass="campo_full" required="true" requiredMessage="O campo é obrigatório" value="#{turmaList.turmaPesquisa.nome}" />
	                    
	                </s:decorate>
                </s:div>

              </li>

            </ol>
            <s:div id="divBotoes">
		        <h:commandLink styleClass="btn" valeu="Pesquisar" action="#{turmaList.pesquisar}">Pesquisar</h:commandLink>
		        <h:commandLink styleClass="btn" valeu="Limpar" action="#{turmaList.listar}" immediate="true" onclick="jQuery('[id$=nome]').val('')">Limpar</h:commandLink>
	        </s:div>
          </fieldset>
  
        <fieldset>
          <s:div rendered="#{listaTurmas.size == 0}">
            <p class="tool_alerta"> Nenhuma Turma encontrada.</p>
          </s:div>
		  <s:div id="tabelaTurma">
          <rich:dataTable value="#{listaTurmas}" var="_turma" styleClass="grid_dados" cellpadding="0" cellspacing="0"
          border="0"  id="turmaLista" rows="#{turmaList.paginacao}"
          rowClasses="grid_zebra,none">
        
            <rich:column >
              <f:facet name="header">Nome</f:facet>
              <h:outputText value="#{_turma.nome}"/>
            </rich:column>
            
            <rich:column >
              <f:facet name="header">Cidade</f:facet>
              <h:outputText value="#{_turma.cidade.nome}"/>
            </rich:column>
            
            
             <rich:column >
              <f:facet name="header">Qtd. Alunos</f:facet>
               <a4j:commandLink title="Exibir Alunos" immediate="true" style="text-align:center;text-decoration: underline;" rendered="#{_turma.alunos.size()>0}" value="#{_turma.alunos.size()}" >
              	<a4j:support event="onclick" reRender="panelAlunos" ajaxSingle="true" limitToList="true" eventsQueue="default" oncomplete="#{rich:component('panelAlunos')}.show()">
              		<f:setPropertyActionListener target="#{turmaList.turma}" value="#{_turma}" />
              	</a4j:support>
              </a4j:commandLink>
            </rich:column>
            
            <rich:column >
              <f:facet name="header">Vagas</f:facet>
              <h:outputText value="#{_turma.temQuantasVagas()}"/>
            </rich:column>

            <rich:column style="width:27%">
              <f:facet name="header">Ações</f:facet>
                <span>
                                
                    <s:link title="Editar Turma" rendered="#{s:hasRole('Gestor') or s:hasRole('Secretária')}"                 
                    id="btnEditar" styleClass="editar2" view="/turma/turma.xhtml" propagation="none">
	                   <f:param name="idTurma" value="#{_turma.id}"/>
                    </s:link>
                    <s:fragment rendered="#{not turmaList.fechada}">
	                     <s:link title="Frequência" rendered="#{s:hasRole('Gestor') or s:hasRole('Secretária') or s:hasRole('Professor')}"                 
	                    id="btnFrequencia" styleClass="calendario" view="/turma/frequencia.xhtml" propagation="none">
		                   <f:param name="idTurma" value="#{_turma.id}"/>
	                    </s:link>
	                    
	                    
	                     <a4j:commandLink  ajaxSingle="true" styleClass="impressao" reRender="frequenciaPanel" limitToList="true"
	                        oncomplete="#{rich:component('frequenciaPanel')}.show()"
	                         rendered="#{s:hasRole('Gestor')}" 
	                         title="Imprimir Frequência"
	                        >
	                        <f:setPropertyActionListener target="#{frequenciaImpressao.turma}" value="#{_turma}" />
	                    </a4j:commandLink>
	                    
	
	                    <a4j:commandLink action="#{turmaList.listarVisitas}" ajaxSingle="true" styleClass="visita" id="editlink" reRender="visitaPanel" limitToList="true"
	                        oncomplete="#{rich:component('visitaPanel')}.show();mascarar()"
	                         rendered="#{s:hasRole('Gestor')}" 
	                         title="Cadastrar Visita"
	                        >
	                        <f:setPropertyActionListener target="#{turmaList.turma}" value="#{_turma}" />
	                    </a4j:commandLink>
	
						 <a4j:commandLink rendered="#{_turma.curso.inclusaoDigital and (s:hasRole('Gestor') or s:hasRole('Professor') or s:hasRole('Auxiliar'))}" action="#{turmaList.listarAvaliacoesInformatica}" ajaxSingle="true" styleClass="avaliacao" id="avaliacaolink" reRender="avaliacaoPanel" limitToList="true"
	                        oncomplete="#{rich:component('avaliacaoPanel')}.show();mascarar()"
	                        title="Adicionar Avaliação"
	                        >
	                        <f:setPropertyActionListener target="#{turmaList.turma}" value="#{_turma}" />
	                    </a4j:commandLink>
	
	   	  			 	                    
	                    <a4j:commandLink rendered="#{s:hasRole('Gestor')}" action="#{turmaList.apagar}" ajaxSingle="true"
	                    	 styleClass="excluir2" id="btnExcluir2" reRender="form" limitToList="true" immediate="true"
	                        title="Excluir"
	                        onclick="if(!confirm('Confirma a exclusão?'))return false;"
	                        
	                        >
	                        <f:setPropertyActionListener target="#{turmaList.turma}" value="#{_turma}" />
	                    </a4j:commandLink>
                    </s:fragment>
   	  			</span>
            </rich:column>

          </rich:dataTable>
          <rich:datascroller id="scrolInstituicao"
            for="turmaLista" maxPages="#{turmaList.paginacao}"
            align="center" renderIfSinglePage="false"  />
</s:div>
        </fieldset>
        
     
      </h:form>
  <rich:modalPanel id="visitaPanel" autosized="true" width="550" >
        <f:facet name="header">
            <h:outputText value="Cadastro de Visitas" />
        </f:facet>
       <f:facet name="controls">
	            <h:panelGroup>
	                <h:graphicImage value="/imagens/close.png" styleClass="hidelink" id="hidelink"/>
	                <rich:componentControl for="visitaPanel" attachTo="hidelink" operation="hide" event="onclick"/>
	            </h:panelGroup>
	        </f:facet>
       
        <div id="conteudo_pagina" >
       	<div id="tamanho_div" style="height:500px;overflow: scroll">

				<a4j:form id="formvisitaHome" styleClass="form_confea" rendered="#{turmaList.visita!=null}">
					<a4j:outputPanel id="panelVisitaForm" ajaxRendered="true">
					<s:validateAll>
					<fieldset>
						<ol>
							<h:messages globalOnly="false" styleClass="tool_alerta" />
						
							<li>
								<fieldset>
									<legend>
										<h:outputText value="Dados da Turma" />
									</legend>
								</fieldset>
							</li>
							<li><s:decorate template="/layout/edit.xhtml" id="decoTurma">
									<ui:define name="label">
							Turma
								</ui:define>
									<h:outputText id="turma" styleClass="campo_full" value="#{turmaList.turma.nome}" />

								</s:decorate></li>
								
							<li>
								<fieldset>
									<legend>
										<h:outputText value="Dados da Visita" />
									</legend>
								</fieldset>
							</li>
							
							
							<li><s:decorate template="/layout/edit.xhtml"
									id="decoResponsavel">
									<ui:define name="label">
							Responsável pela visita
						</ui:define>
									<h:selectOneMenu
										requiredMessage="O campo 'Responsável pela visita' é obrigatório." immediate="true"  
										required="true"
										id="responsavel" styleClass="Combo"
										value="#{turmaList.visita.usuario}">
										<s:selectItems value="#{repositorioUsuario.listar()}"
											var="usuario" label="#{usuario.nome}"
											noSelectionLabel="Selecione" />
										<s:convertEntity />
									</h:selectOneMenu>

								</s:decorate></li>

							<li><s:decorate template="/layout/edit.xhtml" id="decoData">
									<ui:define name="label">
							Data da visita
								</ui:define>
									<rich:calendar id="dataVisita" styleClass="campo_half data"
										value="#{turmaList.visita.dataVisita}" immediate="true"
										datePattern="dd/MM/yyyy" disabled="false" required="true"
										requiredMessage="O campo 'Data da visita' é obrigatório."
										enableManualInput="true"
										locale="pt"
										isDayEnabled="isDayEnabled" 
										dayStyleClass="getDisabledStyle"
										style="position: static;margin-left: 150px;">
										<f:validator validatorId="DataValidator" />
									</rich:calendar>
								</s:decorate></li>
								
								
								<li><s:div style="position:relative" rendered="#{turmaList.turma!=null}">
						            <s:decorate template="/layout/edit.xhtml" id="decoTurno">
						              <ui:define name="label">
						               Turno
						              </ui:define>
						              <s:div>
						                <h:selectOneRadio value="#{turmaList.visita.turno}" required="true"  immediate="true"
						                  styleClass="conhecimento" layout="pageDirection">
						                  <s:selectItems value="#{turmaList.turma.turnos}" var="turno" 
												label="#{turno.nome}"  />
						                  <s:convertEnum/>					                  
						                </h:selectOneRadio>
						              </s:div>
						            </s:decorate>
						
						          </s:div></li>
								
								<li><s:decorate template="/layout/edit.xhtml" id="decoAlunos">
									<ui:define name="label">
							Alunos presentes
								</ui:define>
									<h:inputText id="alunos" required="true" immediate="true"
										requiredMessage="O campo 'Alunos presentes' é obrigatório"
										styleClass="campo_full inteiro" value="#{turmaList.visita.alunosPresentes}" />

								</s:decorate></li>
								
								<li><s:decorate template="/layout/edit.xhtml" id="decoMateria">
									<ui:define name="label">
							Matéria ministrada
								</ui:define>
									<h:inputTextarea id="materia" required="true" immediate="true"
										requiredMessage="O campo 'Matéria ministrada' é obrigatório"
										styleClass="campo_full" value="#{turmaList.visita.materiaMinistrada}" />

								</s:decorate></li>
								
									<li><s:decorate template="/layout/edit.xhtml" id="decoAmbiente">
									<ui:define name="label">
							Descrição do ambiente
								</ui:define>
									<h:inputTextarea id="ambiente" required="true" immediate="true"
										requiredMessage="O campo 'Descrição do ambiente' é obrigatório"
										styleClass="campo_full" value="#{turmaList.visita.descricaoAmbiente}" />

								</s:decorate></li>
								
								
								<li><s:decorate template="/layout/edit.xhtml" id="decoComentarios">
									<ui:define name="label">
							Comentários
								</ui:define>
									<h:inputTextarea id="comentarios" required="true" immediate="true"
										requiredMessage="O campo 'Comentários' é obrigatório"
										styleClass="campo_full" value="#{turmaList.visita.descricao}" />

								</s:decorate></li>
								
								
							<li>
								<fieldset>
									<legend>
										<h:outputText value="Avaliações Infraestrutura" />
									</legend>
								</fieldset>
							</li>
							
							<ui:repeat var="_infra" value="#{turmaList.visita.itensInfra}">
							
								<li><s:decorate template="/layout/edit.xhtml" id="item">
									<ui:define name="label">
										#{_infra.aspecto.nome}
								</ui:define>
								<h:inputTextarea id="item" required="true" immediate="true"
										requiredMessage="O campo '#{_infra.aspecto.nome}' é obrigatório"
										styleClass="campo_full" value="#{_infra.avaliacao}" />

								</s:decorate></li>
							
							</ui:repeat>
							
								<li>
								<fieldset>
									<legend>
										<h:outputText value="Avaliações Pedagógicas" />
									</legend>
								</fieldset>
							</li>
							
							<ui:repeat var="_ped" value="#{turmaList.visita.itensMetodo}">
							
								<li><s:decorate template="/layout/edit.xhtml" id="item2">
									<ui:define name="label">
										#{_ped.aspecto.nome}
								</ui:define>
									<h:inputTextarea id="item2" required="true" immediate="true"
										requiredMessage="O campo '#{_ped.aspecto.nome}' é obrigatório"
										styleClass="campo_full" value="#{_ped.avaliacao}" />

								</s:decorate></li>
							
							</ui:repeat>
								
						</ol>
							<!-- oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('visitaPanel')}.hide();" -->
							<a4j:commandLink styleClass="btn"
								action="#{turmaList.inserirVisita()}"   
								 value="Salvar" limitToList="true"
								reRender="divListaVisita,panelVisitaForm" />
								
							<a4j:commandLink styleClass="btn" action="#{turmaList.cancelar}" 
								 value="Cancelar" immediate="true" limitToList="true" ajaxSingle="true" eventsQueue="default" 
								reRender="panelVisitaForm" >
							</a4j:commandLink>
							</fieldset>
							
					</s:validateAll>
					</a4j:outputPanel>
					<fieldset>
					<s:div id="divListaVisita">
						<rich:dataTable value="#{listaVisitas}" var="_visita" styleClass="grid_dados" cellpadding="0" cellspacing="0"
				          border="0"  id="visitaLista"
				          rowClasses="grid_zebra,none">
				        
				            <rich:column >
				              <f:facet name="header">Data</f:facet>
				              <h:outputText value="#{_visita.dataVisita}" >
				              	<s:convertDateTime pattern="dd/MM/yyyy" />
				              </h:outputText>
				            </rich:column>
				
				
				            <rich:column style="width:17%">
				              <f:facet name="header">Ações</f:facet>
				                <span>
				                    		
				                    		<a4j:commandLink
							                    styleClass="editar2" 
							                    ajaxSingle="true"  id="editlink" reRender="panelVisitaForm" limitToList="true">
						                    	<f:setPropertyActionListener target="#{turmaList.visita}" value="#{_visita}" />
						                    </a4j:commandLink>						                  
						                   <a4j:commandLink 
							                    action="#{turmaList.apagarVisita}" onclick="if(!confirm('Confirmar exclusão?'))return false"
							                    styleClass="excluir2" 
							                    ajaxSingle="true"  id="excluirLink" reRender="visitaLista" limitToList="true">
						                    	<f:setPropertyActionListener target="#{turmaList.visita}" value="#{_visita}" />
						                    </a4j:commandLink>		   	  			
				   	  			</span>
				            </rich:column>
				
				          </rich:dataTable>
				          </s:div>
					</fieldset>
					
					
				</a4j:form>
			</div>
			</div>
		 
    </rich:modalPanel>
    
     <rich:modalPanel id="avaliacaoPanel" autosized="true" width="550" >
        <f:facet name="header">
            <h:outputText value="Cadastro de Avaliações" />
        </f:facet>
       <f:facet name="controls">
	            <h:panelGroup>
	                <h:graphicImage value="/imagens/close.png" styleClass="hidelink" id="hidelinkAvaliacao"/>
	                <rich:componentControl for="avaliacaoPanel" attachTo="hidelinkAvaliacao" operation="hide" event="onclick"/>
	            </h:panelGroup>
	        </f:facet>
       
        <div id="conteudo_pagina" >
       	<div id="tamanho_div" style="height:500px;overflow: scroll">

				<a4j:form id="formAvaliacaoHome" styleClass="form_confea" rendered="#{turmaList.visita!=null}">
					<a4j:outputPanel id="panelAvaliacaoForm" ajaxRendered="true">
					<s:validateAll>
					<fieldset>
						<ol>
						
							<li>
								<fieldset>
									<legend>
										<h:outputText value="Dados da Turma" />
									</legend>
								</fieldset>
							</li>
							<li><s:decorate template="/layout/edit.xhtml" id="decoTurma">
									<ui:define name="label">
							Turma
								</ui:define>
									<h:outputText id="turma" styleClass="campo_full" value="#{turmaList.turma.nome}" />

								</s:decorate></li>
								
							<li>
								<fieldset>
									<legend>
										<h:outputText value="Dados da Visita" />
									</legend>
								</fieldset>
							</li>
							
							
							<li><s:decorate template="/layout/edit.xhtml"
									id="decoResponsavel">
									<ui:define name="label">
							Aluno
						</ui:define>
									<h:selectOneMenu
										requiredMessage="O campo 'Aluno' é obrigatório." immediate="true"  
										required="true"
										id="responsavel" styleClass="Combo"
										value="#{turmaList.avaliacaoInformatica.aluno}">
										<s:selectItems value="#{turmaList.turma.alunos}"
											var="usuario" label="#{usuario.nome}"
											noSelectionLabel="Selecione" />
										<s:convertEntity />
									</h:selectOneMenu>

								</s:decorate></li>

														
								<li><s:decorate template="/layout/edit.xhtml" id="decoNotaInicial">
									<ui:define name="label">
								Nota Inicial
								</ui:define>
									<h:inputText id="ntInicial" required="true" immediate="true" 
										requiredMessage="O campo 'Nota inicial' é obrigatório"
										styleClass="campo_num inteiro" value="#{turmaList.avaliacaoInformatica.notaInicial}" />

								</s:decorate></li>
								
									<li><s:decorate template="/layout/edit.xhtml" id="decoNotaFinal">
									<ui:define name="label">
								Nota Final
								</ui:define>
									<h:inputText id="ntFinal" required="true" immediate="true" 
										requiredMessage="O campo 'Nota Final' é obrigatório"
										styleClass="campo_num inteiro" value="#{turmaList.avaliacaoInformatica.notaFinal}" />

								</s:decorate></li>
								
						</ol>
							<!-- oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('visitaPanel')}.hide();" -->
							<a4j:commandLink styleClass="btn"
								action="#{turmaList.inserirAvaliacao()}"   
								 value="Salvar" limitToList="true" eventsQueue="default" 
								reRender="avaliacoesLista,panelAvaliacaoForm" />
								
							<a4j:commandLink styleClass="btn" action="#{turmaList.cancelar}"
								 value="Cancelar" immediate="true" limitToList="true" ajaxSingle="true" eventsQueue="default" 
								reRender="panelAvaliacaoForm" >
							</a4j:commandLink>
							</fieldset>
							
					</s:validateAll>
					</a4j:outputPanel>
					<fieldset>
		
						<rich:dataTable value="#{listaAvaliacoesInformatica}" var="_avaliacao" styleClass="grid_dados" cellpadding="0" cellspacing="0"
				          border="0"  id="avaliacoesLista"
				          rowClasses="grid_zebra,none">
				        
				       		<rich:column >
				              <f:facet name="header">Nome</f:facet>
				              <h:outputText value="#{_avaliacao.aluno.nome}" >
				              </h:outputText>
				            </rich:column>
				        
				            <rich:column >
				              <f:facet name="header">Inicial</f:facet>
				              <h:outputText value="#{_avaliacao.notaInicial}" >
				              </h:outputText>
				            </rich:column>
							<rich:column >
				              <f:facet name="header">Final</f:facet>
				              <h:outputText value="#{_avaliacao.notaFinal}" >
				              </h:outputText>
				            </rich:column>
				
				            <rich:column style="width:17%">
				              <f:facet name="header">Ações</f:facet>
				                <span>
				                    		
				                    		<a4j:commandLink
							                    styleClass="editar2" 
							                    ajaxSingle="true"  id="editlink" reRender="panelAvaliacaoForm" limitToList="true">
						                    	<f:setPropertyActionListener target="#{turmaList.avaliacaoInformatica}" value="#{_avaliacao}" />
						                    </a4j:commandLink>						                  
						                   <a4j:commandLink  onclick="if(!confirm('Confirmar exclusão?'))return false"
							                    action="#{turmaList.apagarAvaliacao}" 
							                    styleClass="excluir2" 
							                    id="excluirLink" reRender="avaliacaoLista" limitToList="true">
						                    	<f:setPropertyActionListener target="#{turmaList.avaliacaoInformatica}" value="#{_avaliacao}" />
						                    </a4j:commandLink>		   	  			
				   	  			</span>
				            </rich:column>
				
				          </rich:dataTable>
					</fieldset>
					
					
				</a4j:form>
			</div>
			</div>
		 
    </rich:modalPanel>
    
    
    
    
    
    <rich:modalPanel id="panelAlunos" width="550" autosized="true">
	        <f:facet name="header">
	            <h:panelGroup>
	                <h:outputText rendered="#{turmaList.turma!=null}" value="Lista de alunos da turma - #{turmaList.turma.nome}"></h:outputText>
	            </h:panelGroup>
	        </f:facet>
	        <f:facet name="controls">
	            <h:panelGroup>
	                <h:graphicImage value="/imagens/close.png" styleClass="hidelink" id="hidelink2"/>
	                <rich:componentControl for="panelAlunos" attachTo="hidelink2" operation="hide" event="onclick"/>
	            </h:panelGroup>
	        </f:facet>
	      
	         <div id="conteudo_pagina" style="background:none;height:500px;overflow: scroll" >
       			<div id="tamanho_div" >
		   		<a4j:form id="formListaAlunos" styleClass="form_confea">
					<a4j:outputPanel id="panelListaAluno" ajaxRendered="true">
						<fieldset>
				         
				            
				            
				            <rich:dataTable value="#{turmaList.turma.alunosAsList}" var="_aluno" styleClass="grid_dados" cellpadding="0" cellspacing="0"
				          		border="0"  id="alunosLista" 
				          			rowClasses="grid_zebra,none">
				        
					       		<rich:column >
					              <f:facet name="header">Nome</f:facet>
					              <h:outputText value="#{_aluno.nome}" />
					         
					            </rich:column>
					            <rich:column>
									<f:facet name="header">Telefones</f:facet>
									<h:outputText value="#{_aluno.telefone} / #{_aluno.celular}" />
								</rich:column>
					            
					                <rich:column style="width:17%">
				              <f:facet name="header">Ações</f:facet>
				                <span>
				                    						                  
						                   <a4j:commandLink  onclick="if(!confirm('Confirmar retirada?'))return false"
							                    action="#{turmaList.removerDaTurma}" 
							                    styleClass="excluir2" 
							                    id="excluirLink" reRender="alunosLista" limitToList="true">
						                    	<f:setPropertyActionListener target="#{turmaList.aluno}" value="#{_aluno}" />
						                    </a4j:commandLink>		   	  			
				   	  			</span>
				            </rich:column>
		
				          </rich:dataTable>
				            
				            
		            	</fieldset>
	         
					</a4j:outputPanel>
					</a4j:form>
					</div>
					</div>
					
	    </rich:modalPanel>	
    
    
      <rich:modalPanel id="frequenciaPanel" autosized="true" width="350" >
        <f:facet name="header">
            <h:outputText value="Impressão de Frequência Mensal" />
        </f:facet>
       <f:facet name="controls">
	            <h:panelGroup>
	                <h:graphicImage value="/imagens/close.png" styleClass="hidelink" id="hidelinkFrequencia"/>
	                <rich:componentControl for="frequenciaPanel" attachTo="hidelinkFrequencia" operation="hide" event="onclick"/>
	            </h:panelGroup>
	        </f:facet>
       
        <div id="conteudo_pagina" >
       	<div id="tamanho_div" style="height:200px">

				<a4j:form id="formFrequenciaHome" styleClass="form_confea" >
					<a4j:outputPanel id="panelFrequenciaForm" ajaxRendered="true">
					<s:validateAll>
					<fieldset>
						<ol>
						
							<li>
								<fieldset>
									<legend>
										<h:outputText value="Dados da Turma" />
									</legend>
								</fieldset>
							</li>
							<li><s:decorate template="/layout/edit.xhtml" id="decoTurma">
									<ui:define name="label">
							Turma
								</ui:define>
									<h:outputText id="turma" styleClass="campo_full" value="#{frequenciaImpressao.turma.nome}" />

								</s:decorate></li>
								
										
							
							<li><s:decorate template="/layout/edit.xhtml"
									id="decoInicio">
									<ui:define name="label">
									Mês
									</ui:define>

									<rich:calendar showWeekDaysBar="false" showFooter="false" value="#{frequenciaImpressao.data}"
									 oncurrentdateselected="event.rich.component.selectDate(event.rich.date)"
									 popup="false" styleClass="special"
									 locale="pt"
									 />
									 
								</s:decorate></li>

														
															
						</ol>
							
							<h:commandLink styleClass="btn" action="#{frequenciaImpressao.imprimir()}" 
								value="Gerar"  />
								
							<h:commandLink id="btnFechar" styleClass="btn" value="Fechar" />
							<rich:componentControl for="frequenciaPanel" attachTo="btnFechar" operation="hide" event="onclick"/>
							
								
							</fieldset>
							
					</s:validateAll>
					</a4j:outputPanel>
								
					
				</a4j:form>
			</div>
			</div>
		 
    </rich:modalPanel>
    </div>
  </ui:define>

</ui:composition>
